import request from '../uni-request.js'
import {
	placeURL,
	baseURL
} from "../base.js";

export const login = (data) => {
	const url = `${baseURL}/user/login/login`;
	return request({
		method: 'POST',
		data,
		url
	})
}


export const reportUserInfo = (data) => {
	const url = `${placeURL}/api.php?m=openapp&a=saveAppInfo`;
	return request({
		method: 'POST',
		data,
		url
	})
}

export const getUserInfo = (token) => {
	const url = `${baseURL}/custom/user/info-user`
	return request({
		method: 'POST',
		url,
		header: {
			Authorization: token
		}
	})
}
